#ifdef _MSC_VER

#include "event.h"

#include <time.h>
#include <stdio.h>
/*-------- sober --------*/
/*
int strcasecmp(char *a,char *b)
{
  return(_stricmp(a,b));
}*/
/*-------- sober --------*/

struct tm *localtime_r(long *clock,struct tm *res)
{
    _localtime32_s(res,clock);
    return(res);
}

/*-------- sober --------*/
/*int gettimeofday(struct timeval *tp,struct timezone *tz)
{
	SYSTEMTIME st;

    if (tp!=NULL) {
	tp->tv_sec = _time32(NULL);
	GetLocalTime(&st);
	tp->tv_usec = 1000L * st.wMilliseconds;
    }

    return(0);
}*/
/*-------- sober --------*/

int fsync(int fd)
{
  //return(fflush(fp)); //sober
  return _commit(fd);
}

#endif
